<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp" %>
	<script type="text/javascript">
	function checkSubmit(){
	 	var staffForm = document.form1;
		if(!Validator.Validate(staffForm, 3)) {
			return false;
		}
		return true;
	 }

</script>
	<input type="hidden" name="redirectUrl" value='<s:property value="redirectUrl"/>'/>
	<input type="hidden" name="parent.id" value="${parent.id}"/>
 <table width="100%" border="0" align="center" cellpadding="1" cellspacing="2">
    <tr>
      <td class="left-td-width-bg"  align="right">
      <font  color="red" size="2">* </font>渠道：
      </td>
      <td class="right-td-width-bg-left" >
      <s:if test="parent.brand == null">
   	   <s:select name="entity.brand.id" list="brands" listKey="id" listValue="name" headerKey="" headerValue="***请选择***" theme="simple" value="entity.brand.id" dataType="Require" msg="请选择渠道 "></s:select>
      </s:if>
      <s:else>
      	<s:property value="parent.brand.name"/>
      	<input type="hidden" name="entity.brand.id" value="${parent.brand.id}"/>
      </s:else>
      </td>
      <td class="left-td-width-bg"  align="right"><font  color="red" size="2">* </font>金融机构：</td>
      <td class="right-td-width-bg-left">
               	<s:property value="parent.financial.name"/>
      			<input type="hidden" name="entity.financial.id" value="${parent.financial.id}"/>
      </td>
    </tr>
    <tr>
      <td class="left-td-width-bg"  align="right"><font  color="red" size="2">* </font>店名：</td>
      <td class="right-td-width-bg-left">
        <s:property value="parent.shop.shopName"/>
      	<input type="hidden" name="entity.shop.id" value="${parent.shop.id}"/>
   	    <input type="hidden" id="textfield">
      	<input type="hidden" value="${entity.id}" id="entity.id" name="entity.id">
     </td>
      <td class="left-td-width-bg"  align="right">货款品种号：</td>
      <td class="right-td-width-bg-left"><input class="input"  type="text" value="${entity.draft}" name="entity.draft" id="textfield13"></td>
    </tr>
    <tr>
      <td class="left-td-width-bg"  align="right">车型：</td>
      <td class="right-td-width-bg-left"><input class="input"  type="text" value="${entity.motorcycleType}" name="entity.motorcycleType" id="textfield3"></td>
      <td class="left-td-width-bg"  align="right">订单号：</td>
      <td class="right-td-width-bg-left"><input class="input"  type="text" value="${entity.orderNumber}" name="entity.orderNumber" id="textfield12"></td>
    </tr>
    <tr>
      <td class="left-td-width-bg"  align="right"><font  color="red" size="2">* </font>车架号：</td>
      <td class="right-td-width-bg-left">
      <input maxlength="17" class="input"  type="text" value="${entity.chassis}" name="entity.chassis" id="textfield4" dataType="Unique|Require|Chassis" msg="车架号必须是唯一|车架号不能为空|车架号验证  能为数字或字母 长度为十七" classType="com.jysz.certificate.persistence.model.cm.Certification,com.jysz.certificate.persistence.model.cm.RenewObject" valProperty="chassis" entityId="${entity.id}" contextPath="${contextPath}"></td>
       <td class="left-td-width-bg"  align="right">货款起始日：</td>
      <td class="right-td-width-bg-left"><input class="Wdate" type="text" value="<s:date name="entity.draftBeginDate" format="yyyy-MM-dd"/>" name="entity.draftBeginDate" winth="200px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true"/></td>
    </tr>
    <tr>
     <td class="left-td-width-bg"  align="right"><font  color="red" size="2">* </font>合格证号：</td>
     
      <td class="right-td-width-bg-left">
     	 <input maxLength="15"  class="input" type="text" value="${entity.certificationNum}" name="entity.certificationNum" id="textfield5" dataType="Unique|Require|certificationNum"  msg="合格证号必须是唯一|合格证号不能为空|合格证号必须为15位" classType="com.jysz.certificate.persistence.model.cm.Certification,com.jysz.certificate.persistence.model.cm.RenewObject" valProperty="certificationNum" entityId="${entity.id}" contextPath="${contextPath}">
      </td>
     <td class="left-td-width-bg"  align="right">货款到期日：</td>
      <td class="right-td-width-bg-left"><input class="Wdate" type="text" value="<s:date name="entity.draftEndDate" format="yyyy-MM-dd"/>" name="entity.draftEndDate" winth="200px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly"/></td>
    </tr>
    <tr>
      <td class="left-td-width-bg"  align="right">发动机号：</td>
      <td class="right-td-width-bg-left"><input class="input"  type="text" value="${entity.engine}" name="entity.engine" id="textfield6"></td>
      <td class="left-td-width-bg"  align="right">供货价：</td>
      <td class="right-td-width-bg-left"><input msg="供货价格式错误(最大到千万位)" dataType="DoubleMoney"  class="input"  type="text" value="${entity.supplyPrice}" name="entity.supplyPrice" id="textfield7"></td>
    </tr>
    <tr>
      
      
    </tr>
    <tr>
      <td colspan="4" align="center"><label>
        <input type="submit" name="submit" value="" class="btn_save">
        <input type="button" name="button2" class="btn_rest" onClick="clearForm(this.form);return false;">
      </label></td>
    </tr>
  </table>
  

		<br/>
